<script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?390099e04d51c5af312094b0fa3f9183";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>

<!--my-->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?9283521afdc7b8a968dccd9776101cfd";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

<script>
(function(b,a,e,h,f,c,g,s){b[h]=b[h]||function(){(b[h].c=b[h].c||[]).push(arguments)};
b[h].s=!!c;g=a.getElementsByTagName(e)[0];s=a.createElement(e);
s.src="//s.union.360.cn/"+f+".js";s.defer=!0;s.async=!0;g.parentNode.insertBefore(s,g)
})(window,document,"script","_qha",259260,false);
</script>
<header>

  <script>
    (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
    })();
  </script>

<div class="topzw"></div>
<div id="topdiv" class="topdiv ease02s <if condition="$navid eq 'index'">index_topdiv</if>">
    <div class="page_margin topdiv_in" <if condition="$Think.cookie.hidetopstatus neq 'hide'">style="display:none;"</if>>
    <!--logo开始-->
    <div class="logo">
      <div class="logo_in">
        <a href="/" >
          <p class="logo_img"><img src="__STATIC__/images/logo.jpg" alt="中山市朋伴网络科技有限公司" title="中山市朋伴网络科技有限公司" /></p>
          <p class="on"><img src="__STATIC__/images/logo1.png"  /></p>
          <p class="off"><img src="__STATIC__/images/logo2.png"  /></p>
        </a>
      </div>
    </div>
    <!--logo结束-->
    <div class="toplogin">

      <if condition="$_SESSION[user][user_id] gt 0">
          <span class="span3">您好！&nbsp;<a href="{:U('Home/User/index')}">{$_SESSION[user][nickname]} </a>&nbsp;&nbsp; 欢迎来到朋伴！</span>
          <a href="{:U('Home/user/logout')}">退出登录</a>
      <else />
          <span class="span1">您好！欢迎来到朋伴！</span><span class="span2"><i class="icon-denglu"></i></span><span class="span1"><a href="{:U('Home/User/login')}">登录</a> / <a href="{:U('Home/User/reg')}">免费注册</a></span>
      </if>
    </div>
    
    <div class="topnav">
      <ul>
        <if condition="$is_index neq 1">
        <li><a class="topnav_a" href="https://www.pengban.com.cn">首页</a></li>
        </if>
        <li><a class="topnav_a" href="{:U('Goods/goodsList')}">购买网店</a></li>
          <if condition="$user_id gt 0">
              <li><a class="topnav_a" href="{:U('Home/User/add_seller')}">出售网店</a></li>
              <else/>
              <!--<li><a class="topnav_a" href="{:U('Home/Index/index',array('type'=>'buy_seller1'))}">出售网店</a></li>-->
              <li><a class="topnav_a" href="{:U('Home/Index/seller_form')}">出售网店</a></li>
          </if>

        <!--<li><a class="topnav_a" href="{:U('Buy/index')}">出售网店</a></li>-->
        <li><a class="topnav_a" href="{:U('Case/index')}">成交案例</a></li>
        <li class="down"><a class="topnav_a" href="javascript:;">更多服务<span class="tmore"><i class="icon-sanjiaoxing-down"></i></span></a>
          <div class="topnav_down">
            <dl>
              <dd><a href="{:U('Article/detail',array('article_id'=>24))}">公司简介</a></dd>
              <dd><a href="{:U('Article/detail',array('article_id'=>24))}#about_3">联系我们</a></dd>
            </dl>
          </div>
        </li>
      </ul>
    </div><!--topnav-->
</div><!--topdiv-->
</header>

<if condition="$navid eq 'index'">
<script>
$(window).scroll(function()
{
	saction();
});
function saction()
{
	if($(window).scrollTop()>0)
	{
		$("#topdiv").removeClass("index_topdiv");
		$(".logo").addClass("logo_index");
	}
	else
	{
		$("#topdiv").addClass("index_topdiv");
		$(".logo").removeClass("logo_index");
	}
}
</script>
</if>